package cn.changeforyou.tcpIp.analysis.demo.protocol.gbt32960_3.enums;

import io.netty.util.AsciiString;

/**
 * 响应标识
 */
public enum Response_Sign {

    mommand_package("命令包", new AsciiString("FE")),

    ;

    private String describle;
    private AsciiString word;

    Response_Sign(String describle, AsciiString word) {
        this.describle = describle;
        this.word = word;
    }

    public static Response_Sign getByWord(CharSequence word) {
        if (null == word) {
            return null;
        }
        Response_Sign[] values = Response_Sign.values();
        for (Response_Sign value : values) {
            if (value.word.equals(word)) {
                return value;
            }
        }
        return null;
    }

    public String getDescrible() {
        return describle;
    }

    public AsciiString getWord() {
        return word;
    }
}
